package org.yw.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.yw.pojo.DmLinkUser;
import org.yw.pojo.DmUser;

import java.util.List;

@Mapper
public interface DmUserMapper {

    DmUser getDmUserByPhone(@Param("phone")String phone)throws Exception;

    int addDmUser(DmUser user)throws Exception;

    int updateUserInfo(DmUser user)throws Exception;

    List<DmLinkUser> getDmLinkUserListByDmUserId(@Param("id") long id)throws Exception;

    int addLinkUser(DmLinkUser user);

    int queryLinkUserByIdCard(@Param("idCard") String idCard,@Param("id") long userId);

    int deleteDmLinkUser(@Param("userId") long userId,@Param("id") Long id)throws Exception;
}
